package com.ruoyi.web.controller.controllers;


import com.ruoyi.provider.service.ReportService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @author SunNan
 * @version 1.0
 * @date 2024/5/29 17:29
 * @description
 */
@RestController
@RequestMapping("system/export")
public class ReportController {
    @Resource
    private ReportService reportService;
    /**
     * 导出数据报表
     * @param response
     */
    @PostMapping
    @ApiOperation("导出运营数据报表")
    public void export(HttpServletResponse response, int flag, String case_number){
        reportService.excelDerive(response,flag,case_number);
        System.out.println("导出成功");
    }
}
